//
//  UIColor+HMUtilities.h
//
//
//  Created by 谭伟 on 16/10/10.
//  Copyright © 2016年 谭伟. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIColor (HMUtilities)

/**
 *  快速返回16进制RGB值对应的UIColor对象
 *
 *  @param hex 16进制的RGB值, 如 0xFFFFFF
 */
+ (instancetype)colorWithHex:(u_int32_t)hex;

+ (instancetype)colorWithHex:(u_int32_t)hex alpha:(CGFloat)alpha;

+ (instancetype)randomColor;

@end
